package com.byght.bygsystem.controller;

import com.byght.bygsystem.mapper.TimetableMapper;
import com.byght.bygsystem.model.Timetable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController//
@RequestMapping("Timetable")
@Controller//控制层
public class TimetableController {
    @Autowired
    public TimetableMapper timetableMapper;
    @GetMapping("hello")
    public List<Timetable> getAllTimetable(){
        return timetableMapper.selectTimetableList();
    }
}

